Pod::Spec.new do |s|

  s.name         = "ThirdPartyLoginAndShareSDK"
  s.version      = "0.1.0"
  s.summary      = "ThirdPartyLoginAndShareSDK"

  s.description  = <<-DESC
                   *Integrate WeChat, SinaWeibo, QQ sharing message!
                   DESC

  s.homepage     = "git@git.oschina.net:CyonLeu/ThirdPartyLoginAndShareSDK.git"

  s.license          = 'MIT'              #开源协议
  s.source           = { :git => "git@git.oschina.net:CyonLeu/ThirdPartyLoginAndShareSDK.git",:branch => "master"}      #项目地址，这里不支持ssh的地址，验证不通过，只支持HTTP和HTTPS，最好使用HTTPS


  s.author             = { "CyonLeu" => "cyonleu@126.com" }

  s.platform     = :ios, "6.0"

  # s.source_files  = "**/*.{h,m}"
  # s.resources = "**/*.{jpg,json,plist,cer}"

  s.subspec 'SinaWeiboSDK' do |ss|
   ss.source_files = 'SinaWeiboSDK/*.{h}'
   ss.resources = 'SinaWeiboSDK/WeiboSDK.bundle'
   ss.vendored_libraries = 'SinaWeiboSDK/libWeiboSDK.a'
   ss.xcconfig = { 'HEADER_SEARCH_PATHS' => "${PODS_ROOT}/#{s.name}/SinaWeiboSDK/**"}
  end

  s.subspec 'WeChatSDK' do |ss|
   ss.source_files = 'WeChatSDK/*.{h,m}'
   ss.resources = 'WeChatSDK/Resources/*.{png}'
   ss.vendored_libraries = 'WeChatSDK/libWeChatSDK.a'
   ss.xcconfig = { 'HEADER_SEARCH_PATHS' => "${PODS_ROOT}/#{s.name}/WeChatSDK/**"}
  end

  s.subspec 'TencentOpenAPI' do |ss|
    ss.resources = 'TencentOpenAPI/TencentOpenApi_IOS_Bundle.bundle'
    ss.ios.vendored_frameworks = 'TencentOpenAPI/TencentOpenAPI.framework'
  end

  s.requires_arc = true

end
